package IOTest;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Output {
    public static void main(String[] args) {
        byte[] bytes = new byte[1024];
        for (int i = 0; i < 5; i++) {
            bytes[i] = (byte)(65 + i);
        }
        try(OutputStream outputStream = new FileOutputStream("d:/example/test.txt",true)) {
            outputStream.write(bytes);
        }catch (IOException e) {
            e.printStackTrace();
        }
    }
}
